﻿{
	"definitions": [//Dyes: Black=0 Red =1 Green=2 Brown=3 Blue=4 Purple=5 UNU=6 Silver=7 Grey=8 Pink=9 Lime=10 Yellow=11 Light Blue=12 Magenta=13 Orange=14 White=15
		{
			"name": "PMC Freightmaster - Extra Cargo Space",
			"subName": "",
			"extraMaterialLists": [[]]
		}
	],

	"general": {
		"description": "Adds a cut in half shipping container to the back of your truck, fits in the sleeper slot",
		"stackSize": 1,
		"materialLists": [["mts:unuparts.unuparts_crafting_unu_sheetmetal_panel_steel:0:10", "minecraft:glass_pane:0:2"]]
	},	
	
	"generic": {
		"type": "generic_bodypart_unu_truckcab",
		"customType": "pmc_freightmaster",
		"mustBeRemovedByScrewdriver": false,
		"width": 2,
		"height": 0.25
	},
	
	"subParts": [],
	
	"collisionGroups": [
           
           //doorleft//
          {
          "applyAfter": "$DoorR",
          "isInterior": true,
          "collisions": [ 
                                 {
					"pos" : [1.475, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.25, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.0, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [0.75, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                   {
					"pos" : [0.5, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [0.25, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [0.0, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }

                ]
            },
            { 
          "applyAfter": "$DoorL",
          "isInterior": true,
          "collisions": [ 
                            {
					"pos": [0.21875, 0.96875, -3.17188],
					"width": 0.25,
					"height": 0.25,
					"variableName": "door_Door"
		            }
                          ]

           },
            //doorright//
          {
          "applyAfter": "$DoorL",
          "isInterior": true,
          "collisions": [ 
                          {
					"pos" : [-1.475, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.25, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.0, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-0.75, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                   {
					"pos" : [-0.5, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [-0.25, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [-0.0, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }

                ]
            }, 
            { 
          "applyAfter": "$DoorR",
          "isInterior": true,
          "collisions": [ 
                            {
					"pos": [-0.21875, 0.96875, -3.17188],
					"width": 0.25,
					"height": 0.25,
					"variableName": "door_Door"
		            }
                          ]

           },
            {
         //walkway//
          "isInterior": true,
          "collisions": [
                       {
					"pos" : [1.1, 0.0625, -3.5],
					"width" : 1.45,
					"height" : 0.125
				},  
                                {
					"pos" : [0.25, 0.0625, -3.5],
					"width" : 1.45,
					"height" : 0.125
				},
                                {
					"pos" : [-1.1, 0.0625, -3.5],
					"width" : 1.45,
					"height" : 0.125
				},  
                                {
					"pos" : [-0.25, 0.0625, -3.5],
					"width" : 1.45,
					"height" : 0.125
				},  
                                {
					"pos" : [-0.25, 0.0625, -4.25],
					"width" : 1.45,
					"height" : 0.125
				},  
                                {
					"pos" : [0.25, 0.0625, -4.25],
					"width" : 1.45,
					"height" : 0.125
				}, 
                                {
					"pos" : [0.7, -0.1895, -4.32],
					"width" : 0.55,
					"height" : 0.125
				}, 
                                {
					"pos" : [1.0, -0.3795, -4.32],
					"width" : 0.55,
					"height" : 0.125
				},
                                {
					"pos" : [-0.7, -0.1895, -4.32],
					"width" : 0.55,
					"height" : 0.125
				}, 
                                {
					"pos" : [-1.0, -0.3795, -4.32],
					"width" : 0.55,
					"height" : 0.125
				}

                           ]
                     },
                     {
			"collisions": [
				//floor//
                                {
					"pos" : [0.745, 0.0625, -2.425],
					"width" : 1.45,
					"height" : 0.125
				},
                                {
					"pos" : [-0.745, 0.0625, -2.425],
					"width" : 1.45,
					"height" : 0.125
				},
                                {
					"pos" : [0.745, 0.0625, -0.9325],
					"width" : 1.45,
					"height" : 0.125
				},
                                {
					"pos" : [-0.745, 0.0625, -0.9325],
					"width" : 1.45,
					"height" : 0.125
				},
                                //roof//
                                {
					"pos" : [0.745, 2.925, -2.425],
					"width" : 1.45,
					"height" : 0.125
				},
                                {
					"pos" : [-0.745, 2.925, -2.425],
					"width" : 1.45,
					"height" : 0.125
				},
                                {
					"pos" : [0.745, 2.925, -0.9325],
					"width" : 1.45,
					"height" : 0.125
				},
                                {
					"pos" : [-0.745, 2.925, -0.9325],
					"width" : 1.45,
					"height" : 0.125
				},
                               //left wall//
                                  {
					"pos" : [1.475, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.475, 1.5, -0.45],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [1.475, 1.5, -0.70],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.475, 1.5, -0.95],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.475, 1.5, -1.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.475, 1.5, -1.45],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [1.475, 1.5, -1.70],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.475, 1.5, -1.95],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [1.475, 1.5, -2.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.475, 1.5, -2.45],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [1.475, 1.5, -2.70],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.475, 1.5, -2.95],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.475, 1.5, -3.15],
					"width" : 0.1,
					"height" : 2.625
				  },
                                 //right wall//
				{
					"pos" : [-1.475, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.475, 1.5, -0.45],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [-1.475, 1.5, -0.70],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.475, 1.5, -0.95],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.475, 1.5, -1.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.475, 1.5, -1.45],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [-1.475, 1.5, -1.70],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.475, 1.5, -1.95],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [-1.475, 1.5, -2.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.475, 1.5, -2.45],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [-1.475, 1.5, -2.70],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.475, 1.5, -2.95],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.475, 1.5, -3.15],
					"width" : 0.1,
					"height" : 2.625
				  },
                                   //front wall//
                                   {
					"pos" : [1.475, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.25, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [1.0, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [0.75, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                   {
					"pos" : [0.5, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [0.25, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [0.0, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [-1.475, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.25, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-1.0, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  },
                                  {
					"pos" : [-0.75, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                   {
					"pos" : [-0.5, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }, 
                                  {
					"pos" : [-0.25, 1.5, -0.2],
					"width" : 0.1,
					"height" : 2.625
				  }
			],
			"applyAfter": "$Cab"
		}
	],

	"rendering": {
		"animatedObjects": [
			{
				"objectName": "$Cab",
				"animations": []
			},
			{
				"objectName": "$DoorL",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [1.375, 2.875, -3.125],
						"axis": [0, -110, 0],
						"variable": "door_Door",
						"duration": 20,
						"forwardsDelay": 20,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$L1Bar",
				"applyAfter": "$DoorL",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [0.78125, 0.78125, -3.125],
						"axis": [0, -60, 0],
						"variable": "door_Door",
						"duration": 10,
						"forwardsDelay": 10,
						"reverseDelay": 20
					}
				]
			},
			{
				"objectName": "$L1Handle",
				"applyAfter": "$L1Bar",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [0.78125, 0.78125, -3.125],
						"axis": [0, 0, 60],
						"variable": "door_Door",
						"duration": 10,
						"forwardsDelay": 0,
						"reverseDelay": 30
					}
				]
			},
			{
				"objectName": "$L2Bar",
				"applyAfter": "$DoorL",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [0.21875, 0.96875, -3.125],
						"axis": [0, 60, 0],
						"variable": "door_Door",
						"duration": 10,
						"forwardsDelay": 10,
						"reverseDelay": 20
					}
				]
			},
			{
				"objectName": "$L2Handle",
				"applyAfter": "$L2Bar",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [0.21875, 0.96875, -3.125],
						"axis": [0, 0, 60],
						"variable": "door_Door",
						"duration": 10,
						"forwardsDelay": 0,
						"reverseDelay": 30
					}
				]
			},
			{
				"objectName": "$DoorR",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-1.375, 2.875, -3.125],
						"axis": [0, 110, 0],
						"variable": "door_Door",
						"duration": 20,
						"forwardsDelay": 20,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$R1Bar",
				"applyAfter": "$DoorR",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-0.78125, 0.78125, -3.125],
						"axis": [0, 60, 0],
						"variable": "door_Door",
						"duration": 10,
						"forwardsDelay": 10,
						"reverseDelay": 20
					}
				]
			},
			{
				"objectName": "$R1Handle",
				"applyAfter": "$R1Bar",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-0.78125, 0.78125, -3.125],
						"axis": [0, 0, -60],
						"variable": "door_Door",
						"duration": 10,
						"forwardsDelay": 0,
						"reverseDelay": 30
					}
				]
			},
			{
				"objectName": "$R2Bar",
				"applyAfter": "$DoorR",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-0.21875, 0.96875, -3.125],
						"axis": [0, -60, 0],
						"variable": "door_Door",
						"duration": 10,
						"forwardsDelay": 10,
						"reverseDelay": 20
					}
				]
			},
			{
				"objectName": "$R2Handle",
				"applyAfter": "$R2Bar",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-0.21875, 0.96875, -3.125],
						"axis": [0, 0, -60],
						"variable": "door_Door",
						"duration": 10,
						"forwardsDelay": 0,
						"reverseDelay": 30
					}
				]
			}
		],
		"sounds": [
			   {
				"name": "unuparts:unuparts_rotation_unu_cargo_3_open",
				"activeAnimations": [
					{
						"animationType": "visibility",
						"variable": "door_Door",
						"clampMin": 1,
						"clampMax": 1,
						"forwardsDelay": 0,
						"reverseDelay": 0
					}
				]
			},
			{
				"name": "unuparts:unuparts_rotation_unu_cargo_3_close",
				"activeAnimations": [
					{
						"animationType": "visibility",
						"variable": "door_Door",
						"clampMin": 0,
						"clampMax": 0,
						"forwardsDelay": 0,
						"reverseDelay": 20
					}
				]
			}
		]
	},
	
	"constantValues": {
		"unuisbest": 1
	},
	
	"variableModifiers": [
		{
			"variable": "part_cabLength",
			"animations": [
				{
					"animationType": "translation",
					"variable": "unuisbest",
					"axis": [0, 0, 4.5625]
				}
			]
		}
	]
}
